package com.ershi.spring.component.el;

import org.springframework.context.ApplicationEvent;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

/**
 * @author 二十
 * @since 2021/10/15 9:45 上午
 */
@Component
public class MyEventListener {

	@EventListener(classes = ApplicationEvent.class)
	public void listener(ApplicationEvent event){
		System.out.println("event = " + event);
	}
}
